<h1>New image</h1>

<%= error_messages_for :image %>

<% form_for(:image, :url => images_path, :html=>{:multipart=>true}) do |f| %>
  <p>
    <b>Title</b><br />
    <%= f.text_field :title %>
  </p>

  <p>
    <b>Description</b><br />
    <%= f.text_area :description %>
  </p>

  <p>
    <b>Image</b><br />
    <%= f.file_field :image_file %>
  </p>

  <p>
    <%= submit_tag "Create" %>
  </p>
<% end %>

<%= link_to 'Back', images_path %>
